package com.example.fragload;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.btn_hide_show, R.id.btn_replace, R.id.btn_page_adapter, R.id.btn_state_page_adapter})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_hide_show:
                startActivity(new Intent(MainActivity.this, HideShowActivity.class));
                break;
            case R.id.btn_replace:
                startActivity(new Intent(MainActivity.this, ReplaceActivity.class));
                break;
            case R.id.btn_page_adapter:
                startActivity(new Intent(MainActivity.this, PageAdapterActivity.class));
                break;
            case R.id.btn_state_page_adapter:
                startActivity(new Intent(MainActivity.this, StatePageAdapterActivity.class));
                break;
        }
    }
}
